package ModelLayer;


/**
 *      Person
 *      Contains an instance of person(name, ...)
 */
public class Person
{
    // private instance variables for Person.
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private int phoneNo;

    /**
     * Constructor for objects of class Person
     */
    public Person(String name, String address, String postalCode, String city, int phoneNo)
    {
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phoneNo = phoneNo;
    }
    public String getName()
    {
        return name;
    }
    public String getAddress()
    {
        return address;
    }
    public String getPostalCode()
    {
        return postalCode;
    }
    public String getCity()
    {
        return city;
    }
    public int getPhoneNo()
    {
        return phoneNo;
    }
    
    // Change values for Person.
    public void updatePerson(String name, String address, String postalCode, String city, int phoneNo)
    {
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.phoneNo = phoneNo;
    }
        
}
